/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bigo.lib;

import bigo.BigODriver;
import bigo.data.MatrixMeta;
import bigo.data.Vector.Wrapper;
import java.io.IOException;
import java.lang.reflect.Field;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.mapreduce.Mapper;
import org.apache.hadoop.mapreduce.Mapper.Context;

/**
 *
 * @author songliu
 */
public class BigOMapper extends Mapper<IntWritable, Wrapper, IntWritable, Wrapper> {

    @Override
    protected void setup(Context context) throws IOException, InterruptedException {
        BigODriver.loadFields(context.getConfiguration());
    }
}
